<?php
include "includes/ui.php";

echo headerHTML("employee"," แจ้งเตือน");
?> 
<!-- Moldule: Popup -->
<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel"><i class="icon-cog"></i> แจ้งเตือน </h3>
				
        </div>

	<form class="form-horizontal" style="margin-bottom: 0px!important;">

        <div class="modal-body" style="overflow-y:auto;">
		
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i>เรื่อง / หัวข้อ</label>
					<div class="controls">
						 <input class="span3" style="width:300px !important;" required id='txtTitle' type="text" >
					</div>
			 
			</div>
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i>รายละเอียดการแจ้งเตือน</label>
					<div class="controls">
						 <textarea rows="6" id='txtDetail' class="span3" required></textarea>
					</div>
			 
			</div>
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ผู้ถูกแจ้งเตือน</label>
					<div class="controls">
						 <select class="no-margin span8" id="cboName" style="width:250px !important;">
							</select>
					</div>
			 
			</div>
        </div>

        <div class="modal-footer">

 			   <button type='submit' class="btn btn-primary" id="btnSave">บันทึก</button>
				<button class="btn" data-dismiss="modal" aria-hidden="true">ยกเลิก</button>
              
        </div>
  </form>

</div> 
<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i>แจ้งเตือน</h3>
		 
            <div class='tmp' style='float:right'>
			   <a href="#"  ><button class="btn"  style='width:80px;' id='btnPrintDraft' tooltip="Add">พิมพ์</button></a>
               <a href="#popup" data-toggle="modal"><button class="btn btn-info" rel="tooltip" title=""   data-original-title="สร้างรายการ" id='btnAdd' tooltip="Add">แจ้งเตือน</button></a>

            </div>
		 
        </div>
        <!-- /  : Top Bar -->

       <!-- Pie: Content -->
        <div class="well no-padding" >
		 <form class="form-horizontal" id='frmNotice' method="POST" style='margin:0px;'>
		<input type='hidden' id='mid' name='mid' value=''/>
			<div class="span12" style='margin:0px !important;'>
				<div class="row-fluid">
				
					<div class='span12'>
				 
					<div class="control-group" >
						<label class="control-label" ><i class="icon-double-angle-right"></i>วันที่แจ้ง</label>
						<div class="controls" style='margin-left:80px;'>
							<div class="input-append date btndate" data-date="12-02-2012"  data-date-format="dd/mm/yyyy">
								<input class="span1" style="width:120px !important;" id='txtDateFrom_s' size="16" type="text"  readonly="">
								<span class="add-on"><i class="icon-calendar"></i></span>
							</div>
							 
							&nbsp;
							<div class="input-append date btndate" data-date="12-02-2012"  data-date-format="dd/mm/yyyy">
								<input class="span1" style="width:120px !important;" id='txtDateTo_s' size="16" type="text"  readonly="">
								<span class="add-on"><i class="icon-calendar"></i></span>
							</div>
							
							<span class="help-inline" style="font-weight:bold;margin-left:70px;"> ชื่อผู้ถูกแจ้ง&nbsp;</span>
							<input type='text' id='txtName_s' maxlength="50" class='span3' />


							 <button class="btn btn-inverse" type='button' id='btnSearch' style='height:30px;margin-left:50px;margin-top:0px;padding-top:0px;' rel="tooltip" title=""   data-original-title="ค้นหาข้อมูล"><i class="icon-search"></i></button> 
							 
						</div>
						
					</div>
					</div>
					
				</div>
			
            <table class="data-table" id='resultData'>
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:30px !important;'>#</th>
						<th style='color:#333 !important;width:0px !important;'></th>
						<th style='color:#333 !important;width:150px !important;' class='center'>วันที่</th>
                        <th style='color:#333 !important;' class='text-center'>เรื่อง / หัวข้อ</th>
						<th style='color:#333 !important;width:200px !important;' class='text-center'>ผู้ถูกแจ้ง</th>
						<th style='color:#333 !important;width:200px !important;' class='text-center'>แจ้งโดย</th>
						<th style='color:#333 !important;width:100px !important;' class='text-center'>พิมพ์</th>
						<th style='color:#333 !important;width:90px !important;' class='text-center'>ลบ</th>
                    </tr>
                </thead>
                <tbody>
                   
                </tbody>

            </table>
			</div>
		</form>
        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<!--script src="js/bootstrap-typeahead.js"></script-->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/bootstrap-datepicker.js"></script>

<script src="js/myScript/js_notice.js"></script>

</html>